package ABC;

import java.util.Arrays;
import java.util.Scanner;

public class Z031310 {
    public static void main(String[] args) {
        Scanner in =new Scanner(System.in);
        int a[]=new int[10];
        int b[]=new int[10];
        System.out.println("请输入a组的值");
        for (int i = 0; i < a.length; i++) {
            a[i] = in.nextInt();
        }
        System.out.println("请输入b组的值");
        for (int d= 0; d < a.length; d++) {
            b[d] = in.nextInt();
        }
        Arrays.sort(a);
        Arrays.sort(b);
        if (a.length==b.length){
            for (int c=0;c<a.length;c++){
                if (a[c]==b[c]){
                    if (c==a.length-1){
                        System.out.println("数组相同");
                        return;
                    }
                }else
                {
                    System.out.println("数组不同");
                    break;
                }
            }
            }
    }
}
